package lormi.meipin.service.impl;


import lormi.meipin.entity.Activity;
import lormi.meipin.service.BaseService;
import lormi.meipin.service.IActivityService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityService extends BaseService implements IActivityService{

	@Override
	public Activity getOneActivity(Integer id) {
		return activityMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Activity> getAll() {
		return activityMapper.selectList();
	}

	
}
